//
//  NewsCell.m
//  天下事
//
//  Created by dlios on 15-7-11.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "NewsCell.h"
#import "UIImageView+WebCache.h"


@implementation NewsCell


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setNewsmodel:(NewsModel *)newsmodel{
    _newsmodel = newsmodel;
    [self.Scell.secImg sd_setImageWithURL:[NSURL URLWithString:self.newsmodel.imgsrc]];
    self.Scell.secTitle.text = self.newsmodel.title;
 
}
+ (NSString *)idForRow:(NewsModel *)newsmodel{
    if (newsmodel.hasHead && newsmodel.photosetID) {
        return @"SecMyCell";
    }else{
        return nil;
    }
}

+ (CGFloat)heightForRow:(NewsModel *)newsModel{
    if (newsModel.hasHead && newsModel.photosetID) {
        return 300;
    }else{
        return 0;
    }
}




@end
